﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Zj.CourseManage.Domain.Core;

namespace Zj.CourseManage.DTO.Common
{
    /// <summary>
    /// office data transfer object
    /// </summary>
    public class OfficeDTO
    {
        [Display(Name = "科室编号")]
        public int Id { get; set; }


        [Display(Name = "科室名称")]
        [Required(ErrorMessage ="科室名称必填")]
        [StringLength(30, MinimumLength = 3,ErrorMessage ="科室名称长度不超过30个字符,最少不少于3个字符")]
        public string Name { get; set; }



        [Display(Name= "科室教师")]
        public virtual ICollection<Teacher> Teachers { get; set; }
    }
}
